	
  const {mongoose ,Schema} = require('../../daoconfig');
    //#region  题目
//#region   做题
const do_titles_logs_schema = new Schema({
	userid:{ type: Schema.Types.ObjectId,ref: 'users'},
	dolog:[
		{
			tittleid: { type:Schema.Types.ObjectId, ref:'tittles'},
			professionid: { type:Schema.Types.ObjectId, ref:'profession'},
			kemuid: { type:Schema.Types.ObjectId, ref:'kemu'},
			pointid: { type:Schema.Types.ObjectId, ref:'point'},
			stage:{ type:Schema.Types.ObjectId, ref:'stage'},
			logs:[
					{
						// 用户做题回答
						usrans:{
							danxuan: {type: Number},
							duoxuan: {type: Number},
							tiankong: {type: String},
							puanduan:{type: Number}, //1,对,2错			
						}, 
						usrisr:{ type: Number, default:0}, //0未做,1做对,2做错
						time:{type:Date, default: Date.now}
					}
				]
		}
	]
	/* 
		{
			time  时间
			usrsel  用户的选项
			usrisr  用户是否作对
		}

	*/
	  });	

//#endregion



module.exports={
	do_titles_logs_schema
}
